<template>
  <div>
    <router-view v-if="flag" />
  </div>
</template>
<script>
export default {
  name:'App',
  data(){
    return{
      flag:true
    }
  } ,
  provide(){
    return{
      reload:this.reload
    }
  },
  methods:{
    reload(){
      this.flag = false;
      this.$nextTick(()=>{
        this.flag = true;
      })
    }
  }
}
</script>
<style lang="less">

</style>
